public abstract class FigureRunner implements Figures {
    public static void main(String[] args) {
        Transformer trans = new Transformer();
        Calculate cal = new Calculate();
        Point p1 = new Point(54, 50);
        Point p2 = new Point(7, 12);
        Point p3 = new Point(22, 18);
        Point p4 = new Point(27, 8);
        Point p5 = new Point(15, 99);
        Segment s1 = new Segment(p1, p2);
        Triangle t1 = new Triangle(p3, p1, p2);
        Ring r1 = new Ring(5, p1);
        Point[] array;
        array = new Point[10];
        array[0] = p1;
        array[1] = p2;
        array[2] = p3;
        array[3] = p4;
        array[4] = p5;      
        nPolygon nP1=new nPolygon(array.length,array); 
        System.out.println("Point1:");
        System.out.println(p1);
        System.out.println();
        System.out.println("Point2:");
        System.out.println(p2);
        System.out.println();
        System.out.println("Point3:");
        System.out.println(p3);
        System.out.println();
        System.out.println("Segment1:");
        System.out.println(s1);
        System.out.println();
        System.out.println("Triangle1:");
        System.out.println(t1);
        System.out.println();
        System.out.println("Ring1:");
        System.out.println(r1);
        System.out.println();
        System.out.println("Biggest area has figure Nr:");
        System.out.println(cal.areaCompare(s1, r1, t1));
        System.out.println();
        System.out.println("Transformed segment:");
        System.out.println(trans.transformFigure(s1));
        System.out.println();
        System.out.println("Transformed triangle:");
        System.out.println(trans.transformFigure(t1));
        System.out.println();
        System.out.println("Transformed point:");
        System.out.println(trans.transformFigure(p1));
        System.out.println();
        System.out.println("nPolygon2:");
        System.out.println(nP1);
        

    }
}
